package com.wdd.myplatform.xxljobexecutor.jobhandler;

import com.wdd.commmon.providerservice.entity.Goods;
import com.wdd.myplatform.xxljobexecutor.feign.GoodsFeignJobService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class QueryGoodsJob {

    @Autowired
    private GoodsFeignJobService goodsFeignJobService;

    @XxlJob("queryGoods")
    public void queryGoods(){
        Goods goods = goodsFeignJobService.getGoodsDetail("G747961053572370432");
        System.out.println(goods);
    }
}
